package com.itcat.api.mysql;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcat.mysql.pojo.SmsHomeAdvertise;

import java.util.List;

public interface SmsHomeAdvertiseApi {

    Page<SmsHomeAdvertise> findList(String endTime, Integer pageNum, Integer pageSize, String name, Integer type);

    SmsHomeAdvertise queryOne(Integer id);

    //添加广告
    void create(SmsHomeAdvertise smsAdvertise);

    //删除广告
    void delete(List<Integer> ids);

    void deleteById(Integer id);

    //根据ID修改状态
    void updateStatus(Integer id, Integer status);

    //根据ID修改广告
    void updateById(Integer id,SmsHomeAdvertise smsHomeAdvertise);
}
